package com.crr.bean;

import com.alibaba.druid.filter.AutoLoad;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`order`")
@ApiModel("订单")
public class Order {
    @TableId(value = "order_id", type = IdType.ASSIGN_ID) //雪花算法生成主键id
    Integer order_id;
    @TableField("shop_id")
    Integer shop_id;
    Integer user_id;
    Integer delivery_type;
    String shop_name;
    Integer total;
    Integer status;
    Integer all_count;
//    @TableField(exist = false)
//    String pay_time;
//    @TableField(exist = false)
//    String delivery_time;
//    @TableField(exist = false)
//    String finally_time;
//    @TableField(exist = false)
//    String settled_time;
//    @TableField(exist = false)
//    String cancel_time;
    @ApiModelProperty(hidden = true)
    Integer is_payed;
    Integer close_type;
    Integer delete_status;
    Integer version;
    Integer order_addr_id;
    @TableField(exist = false)
    @ApiModelProperty(value = "订单明细")
    List<OrderItem> orderItemList;
    @ApiModelProperty(value = "收货地址")
    @TableField(exist = false)
    OrderAddr orderAddr;


}
